-- GENERATED SPELL FOR [Murkblood Tribesman] --


function spell0_17728(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17728', 597, 1)
end

function spell1_17728(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17728', 685, 1)
end

function Sorts_17728(pUnit, Event)
local choix_sorts_17728 = math.random(0, 1)
if choix_sorts_17728 == 0 then
pUnit:RegisterEvent('spell0_17728', 1, 1)
end
if choix_sorts_17728 == 1 then
pUnit:RegisterEvent('spell1_17728', 1, 1)
end
end

function mob17728_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17728', math.random(1500, 3000), 1)
end

function mob17728_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17728_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17728_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17728, 1, 'mob17728_Action')
RegisterUnitEvent(17728, 2, 'mob17728_Leave')
RegisterUnitEvent(17728, 3, 'mob17728_Kill')
RegisterUnitEvent(17728, 4, 'mob17728_Die')
